package day05.practice;

import java.util.Scanner;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/14
 */
public class Practice22 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个字符串: ");
        String s = scanner.nextLine();
        if (s == null || s.isEmpty()) {
            System.out.println("输入不能为空！");
            return;
        }
        String result = s.substring(0, 1).toUpperCase()
                + s.substring(1).toLowerCase();

        System.out.println("转换结果：" + result);
        scanner.close();

    }
}
